package shServer;

public class Sensor 
{

	private String type;
	private boolean isTripped;
//	private String location;
	
	public Sensor()
	{
		type = "default";
		isTripped = false;
	}
	
	public Sensor(String type)
	{
		this.type = type;
		isTripped = false;
	}
	
	public synchronized void setType(String type)
	{
		this.type = type;
	}
	
	public synchronized String getType()
	{
		return this.type;
	}
	
	public synchronized void setIsTripped(boolean isTripped)
	{
		this.isTripped = isTripped;
	}
	
	public synchronized boolean getIsTripped()
	{
		return this.isTripped;
	}
}
